package cn.portx.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

import com.bstek.dorado.annotation.PropertyDef;

@Entity(name = "PORTX_MESSAGE")
@Table(name = "T_MESSAGE")
public class Message extends BaseEntity {

	private static final long serialVersionUID = -8167467790828780876L;

	@Column(name = "TYPE_")
	@PropertyDef(label = "消息类型", description = "0：系统消息；1：用户消息")
	private int type;

	@Column(name = "SENDER_")
	@PropertyDef(label = "发送人")
	private String sender;

	@Column(name = "RECEIVER_")
	@PropertyDef(label = "接收人")
	@Lob
	private String receiver;

	@Column(name = "CONTENT_")
	@PropertyDef(label = "消息内容")
	@Lob
	private String content;

	@Column(name = "READ_")
	@PropertyDef(label = "已读", description = "0：未读；1：已读")
	private int read;
	
	@Column(name = "RECEIVER_DEL_")
	@PropertyDef(label = "删除", description = "接收人删除，0：未删除；1：已删除")
	private int receiverDel;
	
	@Column(name = "SENDER_DEL_")
	@PropertyDef(label = "删除", description = "发生人删除，0：未删除；1：已删除")
	private int senderDel;

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getRead() {
		return read;
	}

	public void setRead(int read) {
		this.read = read;
	}

	public int getReceiverDel() {
		return receiverDel;
	}

	public void setReceiverDel(int receiverDel) {
		this.receiverDel = receiverDel;
	}

	public int getSenderDel() {
		return senderDel;
	}

	public void setSenderDel(int senderDel) {
		this.senderDel = senderDel;
	}

	
}
